<template>
<!-- 	<TopBar>
		<text>北京一轻集团数字工会</text>
	</TopBar> -->
	
	<MenuList :menu="list" category="活动专区"/>
	
</template>

<script>
	import TopBar from '@/components/system/TopBar.vue'
	import MenuList from '@/components/system/MenuList.vue'
	import { paramsApi } from '@/api/params/params-api.js';
	
	export default {
		components: {
			TopBar,
			MenuList
		},
		data() {
			return {
				list: [
					// {
					// 	name: '健步走',
					// 	url: '/brisk-walking/index?title=健步走&type=1',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E8%81%8C%E5%B7%A5%E6%B4%BB%E5%8A%A8_51978.png', // '/static/images/icon/activity/icon1.png'
					// },
					// {
					// 	name: '兴趣协会',
					// 	url: '/user-page/undeveloped-page?title=兴趣协会',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E5%85%B4%E8%B6%A3%E5%8D%8F%E4%BC%9A_52026.png'
					// },
					// {
					// 	name: '幸运大转盘',
					// 	url: '/user-page/undeveloped-page?title=幸运大转盘',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E5%B9%B8%E8%BF%90%E5%A4%A7%E8%BD%AC%E7%9B%98_52085.png'
					// },
					// {
					// 	name: '随手拍',
					// 	url: '/brisk-walking/index?title=随手拍&type=2',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E9%9A%8F%E6%89%8B%E6%8B%8D_52200.png'
					// },
					// {
					// 	name: '联谊交友',
					// 	url: '/user-page/undeveloped-page?title=联谊交友',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E6%81%8B%E7%88%B1%E4%BA%A4%E5%8F%8B_52114.png'
					// },
					// {
					// 	name: '问卷调查',
					// 	url: '/user-page/undeveloped-page?title=问卷调查',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E9%97%AE%E5%8D%B7%E8%B0%83%E6%9F%A5_52144.png'
					// },
					// {
					// 	name: '竞赛答题',
					// 	url: '/brisk-walking/index?title=竞赛答题&type=3',
					// 	// url: '/answer-questions/list',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E7%AB%9E%E8%B5%9B%E7%AD%94%E9%A2%98_52167.png'
					// },
					// {
					// 	name: '其他活动',
					// 	url: '/user-page/undeveloped-page?title=其他活动',
					// 	icon: 'https://jqgh-public.yqfoodec.com/20250408/%E6%9B%B4%E5%A4%9A%E6%9C%8D%E5%8A%A1_52261.png'
					// },
				]
			}
		},
		onLoad() {
			this.getParams();
		},
		methods: {
			async getParams(){
				const result = await paramsApi.getActivityCenterList();
				this.list = result.data;
			},
		}
	}
</script>

<style lang="scss" scoped>
@import '@/uni.scss';
	
:deep(.u-grid-item) {
	padding: 50rpx 0 10rpx;
	
	.grid-text {
		padding-top: 10rpx;
		color: $uni-text-color;
	} 
}


</style>

